import java.util.Scanner;
 
 public class pp35 
 {
 public static void main(String[] args)
 {
 double x1,x2,y1,y2;
 
 Scanner scan = new Scanner(System.in);
 
 System.out.println("Enter the x1:");
 x1 = scan.nextInt();
 
 System.out.println("Enter the x2:");
 x2 = scan.nextInt();
 
 System.out.println("Enter the y1:");
 y1 = scan.nextInt();
 
 System.out.println("Enter the y2:");
 y2 = scan.nextInt();

 double a, b, one, two, discriminant;


 a = x2 - x1;
 b = y2 - y1;
 one = Math.pow(a,2);
 two = Math.pow(b,2);

 discriminant = Math.sqrt( one + two );
 
 System.out.println("distence:" + discriminant);
 }
}
